<?php 
// Connects to your Database 
mysql_connect("localhost", "username", "password") or die(mysql_error()); 
mysql_select_db("database") or die(mysql_error()); 
$data = mysql_query("SELECT * FROM ino_serverServerStatus") 
or die(mysql_error()); 
while($info = mysql_fetch_array( $data )) 
$serveronline = ( $info['serverOpen'] . " " );

if ( $serveronline == 1 ){
	echo '<img src="online.gif">';
}
?>